package com.bean;

import java.io.Serializable;
import java.util.Date;

public class CdyOrder implements Serializable {

    private  Integer id;
    private String phone;
    private  Integer cdyName;
    private  Double price;
    private  Integer number;
    private  Double totalPrice;
    private  Integer state;
    private Date orderTime;
    private Integer spare;

    private Commodity commodity;

    public CdyOrder() {
    }

    public CdyOrder(Integer id) {
        this.id = id;
    }

    public CdyOrder(Integer id, String phone, Integer cdyName, Double price, Integer number, Double totalPrice, Integer state, Date orderTime, Integer spare) {
        this.id = id;
        this.phone = phone;
        this.cdyName = cdyName;
        this.price = price;
        this.number = number;
        this.totalPrice = totalPrice;
        this.state = state;
        this.orderTime = orderTime;
        this.spare = spare;
    }

    @Override
    public String toString() {
        return "CdyOrder{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", cdyName=" + cdyName +
                ", price=" + price +
                ", number=" + number +
                ", totalPrice=" + totalPrice +
                ", state=" + state +
                ", orderTime=" + orderTime +
                ", spare=" + spare +
                ", commodity=" + commodity +
                '}';
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getCdyName() {
        return cdyName;
    }

    public void setCdyName(Integer cdyName) {
        this.cdyName = cdyName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getSpare() {
        return spare;
    }

    public void setSpare(Integer spare) {
        this.spare = spare;
    }
}
